import Vue from 'vue'
import Router from 'vue-router'

const MyTodoList = () => import('../views/MyTodoList')
const MyProject = () => import('../views/MyProject')
const PersonalSetting = () => import('../views/PersonalSetting')

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/hdgl/',
  routes: [
    {
      path: '/',
      name: 'MyProject',
      component: MyProject
    },
    {
      path: '/MyTodoList/:taskId',
      name: 'MyTodoList',
      component: MyTodoList
    },
    {
      path: '/setting',
      name: 'PersonalSetting',
      component: PersonalSetting
    }
  ]
})
